package com.Extends.Interface.Demo;

public class Demo {
    public static void main(String[] args){
        TableTennisPlayer tp = new TableTennisPlayer("小李",30);
        System.out.println(tp.getName()+","+tp.getAge());
        tp.study();
        tp.speakEnglish();
        tp.eat();
        System.out.println("-------------------");
        TableTennisCoach tc = new TableTennisCoach("老李",45);
        System.out.println(tc.getName()+","+tc.getAge());
        tc.teach();
        tc.speakEnglish();
        tc.eat();
        System.out.println("-------------------");
        BasketballPlayer bp = new BasketballPlayer("小王",20);
        System.out.println(bp.getName()+","+bp.getAge());
        bp.study();
        bp.eat();
        System.out.println("-------------------");
        BasketballCoach bc = new BasketballCoach("老王",56);
        System.out.println(bc.getName()+","+bc.getAge());
        bc.teach();
        bc.eat();
    }
}
